home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 January - Disc 2 / Macworld (1999-01) (Disk 2).dmg / Shareware World / Network / mRobot / Maintenance Robot / Maintenance Robot.rsrc / LENS_129_Maintenance Required < prev    next >
Text File  |  1998-11-01  |  3KB  |  42 lines

  1. ItemType: WIND
  2. Rect: 286,232,737,346
  3. Style: Dialog
  4. HasTitleBar: FALSE
  5. HasZoomBox: FALSE
  6. Name: Maintenance Required
  7. WhiteColor: -4370,-4370,-4370
  8. Script: global virexHasRun,techtoolHasRun,rc,r,dayIs,dayNum,hj,vLocn,tToolLocn,defLocn,float¬if there is a window "Splash" then¬  wsSend "Splash","0","Close"¬end if¬if objValue="Open" then¬  if the optionkey is down then¬    wsSet wdID,"5","Visible", "TRUE"¬    wsSet wdID,"4","Text", "Maintenance Mode. Click the 'Admin' button to make changes..."¬  else¬    if rc ≥ dayNum and rc ≤ hj and virexHasRun = "0" then¬      beep¬      wsSet wdID,"3","Disabled", "FALSE"¬      wsSet wdID,"3","DefaultItem", "TRUE"¬      wsSet wdID,"2","DefaultItem", "FALSE"¬      wsSet wdID,"4","Text", "It's time to update the virus definitions file on your Mac. Click the 'Update Virus Def's' button to proceed..."¬    else¬      if dayIs = r and techtoolHasRun = "0" then¬        beep¬        wsSet wdID,"2","Disabled", "FALSE"¬        wsSet wdID,"3","DefaultItem", "FALSE"¬        wsSet wdID,"2","DefaultItem", "TRUE"¬        wsSet wdID,"4","Text", "It's time to rebuild the desktop file on your Mac. Click the 'Rebuild Desktop' button to proceed..."¬      end if  ¬    end if¬  end if¬end if¬
  9.  
  10. ItemType: PICT
  11. Rect: 20,13,52,45
  12. AutoSize: FALSE
  13. ID: 1033
  14. Logic: Push
  15. Script: global float¬wsSet wdID,"1","ID", "1034"¬wsSend "Maintenance Required","1","DoUpdate"¬put 1 into float¬get windowscript("about")¬
  16.  
  17. ItemType: PUSH
  18. Rect: 307,76,434,96
  19. AutoSize: FALSE
  20. Disabled: TRUE
  21. Name: Rebuild Desktop
  22. DefaultItem: TRUE
  23. Script: global virexHasRun,techtoolHasRun,rc,r,dayIs,dayNum,hj,vLocn,tToolLocn,defLocn¬put 1 into techtoolHasRun¬put xLat(Res,techtoolHasRun) into z¬nCod "prof",701,"techtool",z¬put GetBootVol() into xa¬if last char of xa = ":" then¬  delete last char of xa¬end if¬put xa & ":Desktop DB" into rm¬put xa & ":Desktop DF" into rg¬put SetVisible(rm, "true") into cv¬put SetVisible(rg, "true") into cx¬put MoveToTrash(rm) into cv¬put MoveToTrash(rg) into cx¬wsSend "Splash","0","Close"¬wait 60 ticks¬RestartMac¬quit
  24.  
  25. ItemType: PUSH
  26. Rect: 171,76,298,96
  27. AutoSize: FALSE
  28. Disabled: TRUE
  29. Name: Update Virus Def's
  30. Script: global virexHasRun,techtoolHasRun,rc,r,dayIs,dayNum,hj,vLocn,tToolLocn,defLocn¬put 1 into virexHasRun¬put xLat(Res,virexHasRun) into z¬nCod "prof",700,"virex",z¬LaunchDoc defLocn¬quit
  31.  
  32. ItemType: TEXT
  33. Rect: 68,13,439,60
  34. AutoSize: FALSE
  35. WhiteColor: -4370,-4370,-4370
  36.  
  37. ItemType: PUSH
  38. Rect: 20,76,100,96
  39. AutoSize: FALSE
  40. Visible: FALSE
  41. Name: Admin
  42. Script: get windowscript("Administration")¬wsSend "Maintenance Required","Maintenance Required","Close"¬